package com.treasure.mall.biz.entity.live;

import com.treasure.mall.biz.entity.BasePO;
import lombok.Data;

import javax.persistence.*;

/**
 *
 * <p> 直播间用户今日或离开记录
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.entity.live
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/9/16 6:01 下午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * 
 */
@Entity
@Data
@Table(name = "zb_live_room_user_records")
@Cacheable(false)
public class LiveRoomUserRecordsPO extends BasePO {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    /**
     * 用户
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 直播间sessionId
     */
    @Column(name = "session_id", length = 50)
    private String sessionId;

    /**
     * 是否离开
     */
    @Column(name = "is_leave")
    private boolean leave;


}
